package at.fhj.swd11.leitner.ue2;

public class Buch extends Artikel {
	
	private String author, title, pub;
	private int year;
	
	//Constructor
	public Buch(int code, String author, String title, int price){
		super(code, author+": "+title, price); //
		this.author = author;
		this.title = title;
		this.pub = "LOETE"; //default
		this.year = 2012; //default
		
	}
	
	// Overwrite Method showInfo()
	public void showInfo(){
		super.showInfo(); // superclass.showInfo()
		System.out.println("Type: Buch");
		System.out.println("Author: " +author);
		System.out.println("Title:" +title);
		System.out.println("Publisher: " +pub);
		System.out.println("Year: " +year);
	}
	
	

}
